
public class Java01 {

	public static void main(String[] args) {
		int [] a = {19, 28, 37, 46, 50}; 
		a = sz(a);
		System.out.print("[");
		for (int i = 0; i < a.length; i++) {
			if (i<a.length-1) {
				System.out.print(a[i]+",");		
			} else {
				System.out.print(a[i]);
			}
		}
		System.out.print("]");
	}

	private static int[] sz(int[] a) {
		int [] c =new int [5]; 
		for (int i = 0; i < a.length; i++) {
		c [i] =a[a.length-i-1];	
		}
		return c;
	}

}
